package user;

import book.BookList;
import opera.IOPeration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 言初
 * Date: 2023-01-09
 * Time: 9:38
 * 一个抽象类
 */
public abstract class User {
    protected String name;
    public User(String name){
        this.name=name;
    }
    public abstract int menu();
    public IOPeration[] ioPerations;
    public void doWork(int choice, BookList bookList){
        this.ioPerations[choice].work(bookList);
    }
}
